> This patch makes the definition of "duplicate" ignore case. Mapsource
> doesn't like waypoints with the same name in different case.
>
queue *elem, *tmp;
extern queue waypt_head;
const char *snptr;
+ char *tmp_sn, *tmp_ptr;
unsigned long last_crc;
char ssid[32 + 5 + 1];
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
bh->wpt = (waypoint *) elem;
snptr = bh->wpt->shortname;
- bh->crc = get_crc32(snptr, strlen(snptr));
+ tmp_sn = xstrdup(snptr);
+ for (tmp_ptr = tmp_sn; *tmp_ptr; tmp_ptr++)
+ *tmp_ptr = tolower(*tmp_ptr);
+ bh->crc = get_crc32(tmp_sn, strlen(snptr));
+ xfree(tmp_sn);
i ++;
bh ++;
}